package io.choerodon.mybatis.pagehelper.dialect;

import cn.sciento.core.oauth.CustomUserDetails;
import net.sf.jsqlparser.statement.select.PlainSelect;

import java.util.Map;

/**

 */
public class OrderByExclude extends AbstractOrderByExclude {
    @Override
    public PlainSelect handlePlainSelect(PlainSelect plainSelect, String serviceName, String sqlId, Map args, CustomUserDetails userDetails) {
        plainSelect.setOrderByElements(null);
        return super.handlePlainSelect(plainSelect, serviceName, sqlId, args, userDetails);
    }
}
